<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>微博用户列表</title>
	<link rel="stylesheet" href="__PUBLIC__/Css/common.css" />
	<script type="text/javascript" src='__PUBLIC__/Js/jquery-1.8.2.min.js'></script>
	<script type="text/javascript" src='__PUBLIC__/Js/common.js'></script>
</head>
<body>
	<div class='status'>
		<span>微博用户列表</span>
	</div>
	<table class='table'>
		<tr>
			<th>ID</th>
			<th>用户昵称</th>
			<th>头像</th>
			<th>关注信息</th>
			<th>注册时间</th>
			<th>账号状态</th>
			<th>操作</th>
		</tr>
		<foreach name='users' item='v'>
			<tr>
				<td width='50' align='center'>{$v.id}</td>
				<td>{$v.username}</td>
				<td width='80' align='center'>
					<img src="<if condition='$v["face"]'>{$v.face}<else/>__ROOT__/Public/Images/noface.gif</if>" width='50' height='50'/>
				</td>
				<td align='center'>
					<ul>
						<li>关注：{$v.follow}</li>
						<li>粉丝：{$v.fans}</li>
						<li>微博：{$v.weibo}</li>
					</ul>
				</td>
				<!-- 在模板中使用date函数 -->
				<td width='100' align='center'>{$v.registime|date='Y-m-d', ###}</td>
				<td width='60' align='center'><if condition='$v["lock"]'>己锁定</if></td>
				<td width='100' align='center'>
					<if condition='$v["lock"]'>
					<!-- a标签指向这个lockuser方法 -->
						<a href="{:U('lockUser', array('id' => $v['id'], 'lockType' => 0))}" class='add lock'>解除锁定</a>
					<else/>
						<a href="{:U('lockUser', array('id' => $v['id'], 'lockType' => 1))}" class='add lock'>锁定用户</a>
					</if>
				</td>
			</tr>
		</foreach>
		<tr height='50'>
			<td align='center' colspan='7'>{$page}</td>
		</tr>
	</table>
</body>
</html>